package com.biostime.qdingding.modules.qd.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.qd.api.dto.ActivityDetailDto;
import com.biostime.qdingding.modules.qd.entity.Activity;
import com.biostime.qdingding.modules.qd.entity.Activitymember;

/**
 * 活动dao
 * @author chenweicheng
 * @version 2015-12-06
 */
@MyBatisDao
public interface ActivityDao extends CrudDao<Activity> {
	
	
	
	
	
	
//	 <!-- ————————————————————————————楚河汉界，谁敢动我的，打死! ————————————————————————————————————-->
	public ActivityDetailDto apiGetActivity(@Param("id")String id,@Param("userId") String userId);
	
	public List<ActivityDetailDto> apiFindList(@Param("userId")String userId,@Param("centerId")String centerId);
	
	public int apiInsertActivity(Activitymember activityStudent);
	
	public List<ActivityDetailDto> apiMyFindList(@Param("userId")String userId,@Param("type") String type);
	
	public int apiDeleteOrder(@Param("activityId") String activityId,@Param("userId")String userId,
			@Param("type") String type);
	
	public Activitymember apiFindOrderById(@Param("activityId") String activityId,@Param("userId")String userId,
			@Param("type") String type);
	
	public List<String> apiGetImgs(@Param("activityId") String activityId);
	
	public int apiGetNumber(@Param("activityId") String activityId);
	
	public List<HashMap<String,Object>> activityScollImage(@Param("userId")String userId,@Param("centerId")String centerId);
	
	public HashMap<String,Object> selectActState(@Param("userId")String userId,@Param("activityId")String activityId);
	
}